package homework;

public class Demo7 {
    public static void main(String[] args) {
        int sum =1;
        for(int i=1;i<=8;i++){
            sum = sum*i;
        }
        System.out.println("sum = " + sum);
    }
}
